cmake_minimum_required(VERSION 3.15)

include(proj.conf)

find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE})

file(GLOB_RECURSE sources 
        "${CMAKE_CURRENT_SOURCE_DIR}/rgb/*.c" 
        "${CMAKE_CURRENT_SOURCE_DIR}/button/*.c"
    )

sdk_add_include_directories(rgb button)

sdk_set_main_file(main.c)

target_sources(app PRIVATE ${sources})

project(M61-32-RGB-Demo)